package com.tencreat.service.im.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.tencreat.domain.im.ImPhrasesType;
import com.tencreat.mapper.im.ImPhrasesTypeMapper;
import com.tencreat.service.IImPhrasesTypeService;
import lombok.RequiredArgsConstructor;
import org.springframework.transaction.annotation.Transactional;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * 常用语分类Service业务层处理
 *
 * @author tencreat
 * @company 深圳腾创互联科技有限公司
 * @link https://tencreat.com
 * @since 2023-11-22
 */
@Service
@Transactional(rollbackFor = Exception.class)
@RequiredArgsConstructor
public class ImPhrasesTypeServiceImpl extends ServiceImpl<ImPhrasesTypeMapper, ImPhrasesType> implements IImPhrasesTypeService {

    /**
     * 分页查询
     * @param iPage 分页参数
     * @param imPhrasesType 查询条件
     * @return 分页结果
     */
    @Override
    public IPage<ImPhrasesType> page(IPage<?> iPage, ImPhrasesType imPhrasesType) {
        return baseMapper.page(iPage, imPhrasesType);
    }

}